package com.pt.ew;

import java.util.ArrayList;
import java.util.List;

import com.pt.ew.image.CharSetEncoder;
import com.pt.ew.image.TileDef;
import com.pt.ew.image.TilesDecoder;

public class ImagesConverter {

	public static void main(String args[]) throws Exception {
		
		List<TileDef> tiles = new ArrayList<TileDef>();
		
		TilesDecoder td = new TilesDecoder();
		CharSetEncoder charsetEncoder = new CharSetEncoder();
		
		tiles.add(td.encodeTile("soldier1.png"));
		tiles.add(td.encodeTile("tank.png"));
		
		charsetEncoder.writeCharset("gr8charset.fnt", tiles);
	}
}
